package com.bicon.botu.finance.wallet.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.bicon.botu.core.base.repository.mybatis.UuidBaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 钱包明细
 * @Author: sx
 * @Date: Created in 10:43 2017/6/21/021
 */
@TableName("lk_wallet_detail")
@Data
public class WalletDetail extends UuidBaseEntity<WalletDetail> {

    @TableField("user_id")
    private String userId;       //用户ID

    @TableField("other_user_id")
    private String otherUserId;       //另一个用户ID

    @TableField("wallet_id")
    private String walletId;     //用户账户ID

    @TableField("subjects")
    private String subjects;     //类型(0.收入，1.支出，2.充值，3.提现)

    @TableField("subjects_child")
    private String subjectsChild;     //子类型(0.转账，1.红包，2.充值)

    @TableField("app_id")
    private String appId;

    @TableField("module")
    private String module;

    @TableField("business")
    private String business;

    @TableField("money")
    private BigDecimal money;        //金额

    @TableField("financial_type")
    private String financialType;      //交易类型（0:余额，1：支付宝，2：微信，3：银联）

    @TableField("financial_id")
    private String financialId;      //金融账户id

    @TableField("order_no")
    private String orderNo;          //订单号

    @TableField("pay_order_no")
    private String payOrderNo;          //支付订单号

    @TableField("pay_info")
    private String payInfo;          //支付信息

    private String state;       //结果 0:交易中 1:交易成功 2:交易失败 3交易取消

    private String remark;         //备注

    @TableField("operation_date")
    private Date operationDate;      //操作时间


}
